package com.gxa.learning.pc.service;

import com.gxa.learning.core.exception.BusinessException;
import com.gxa.learning.core.pojo.Course;
import com.gxa.learning.core.pojo.ProjectCourse;
import com.gxa.learning.core.service.BaseService;

import java.util.List;

public interface ProjectCourseService extends BaseService<ProjectCourse> {

    /**
     * 给一个培训项目添加课程
     */
    void addProjectCourse(List<Long> cids, Long pid) throws BusinessException;


    /**
     * 获取一个培训项目选择了的课程
     */
    List<Course> getCourseList(Long pid) throws BusinessException;

    /**
     * 获取所有的课程
     */
    List<Course> getAllCourse() throws BusinessException;

}
